<?php include "../public/header.php";?>
<?php include "../public/header_show.php";?>
<link rel='stylesheet' href='/static/admin/css/home.css'>
<body id="xiangqingPage" style="overflow-x: hidden!important;">
<div id="xiangqingBox">
    <div class="page-title">
        <div class="page-title-con">
            <span class="pageshowtitle">详情</span>
            <div class="page-title-opt-list">
                <button class="layui-btn layui-btn-sm btn-light marginr5" onclick="get_flowinfo()">相关流程</button>
                <span id="page-close" class="page-close" onclick="layer_close()">×</span>
            </div>
        </div>
    </div>
    <div class="main-container" style="padding: 0 50px">
        <div class="tong_business1 layui-hide">
            <div class="tongbox tongbox7">
                <div class="tuo">
                    <div class="tit">项目名称</div>
                    <div class="con colorlan" id="tong_name"></div>
                </div>
                <div class="tuo">
                    <div class="tit">项目状态</div>
                    <div class="con" id="tong_state_name"></div>
                </div>
                <div class="tuo">
                    <div class="tit">项目属性</div>
                    <div class="con" id="tong_business_name"></div>
                </div>
                <div class="tuo">
                    <div class="tit">建设单位</div>
                    <div class="con" id="tong_jian_unit"></div>
                </div>
                <div class="tuo">
                    <div class="tit">工程造价(万元)</div>
                    <div class="con" id="tong_expectfee"></div>
                </div>
                <div class="tuo">
                    <div class="tit">实际开工日期</div>
                    <div class="con" id="tong_actualdt"></div>
                </div>
                <div class="tuo">
                    <div class="tit">项目负责人</div>
                    <div class="con" id="tong_man_xiang_name"></div>
                </div>
            </div>
            <div class="tongbox tongbox7">
                <div class="tuo">
                    <div class="tit">施工合同 A (元)</div>
                    <div class="con colorlan" id="tong_shimoney"></div>
                </div>
                <div class="tuo">
                    <div class="tit">累计审定产值 B (元)</div>
                    <div class="con colorlan" id="tong_lei_chan"></div>
                </div>
                <div class="tuo">
                    <div class="tit">累计开票(元)</div>
                    <div class="con colorlan" id="tong_lei_piaokai"></div>
                </div>
                <div class="tuo">
                    <div class="tit">销项税(元)</div>
                    <div class="con colorlan" id="tong_kai_ratefee"></div>
                </div>
                <div class="tuo">
                    <div class="tit">累计回款 C (元)</div>
                    <div class="con colorlan" id="tong_lei_huikuan"></div>
                </div>
                <div class="tuo">
                    <div class="tit">合同回款比例 C/A (%)</div>
                    <div class="con" id="tong_lei_huirate"></div>
                </div>
                <div class="tuo">
                    <div class="tit">产值回款比例 B/A (%)</div>
                    <div class="con" id="tong_lei_chanrate"></div>
                </div>
            </div>
            <div class="tongbox tongbox7">
                <div class="tuo">
                    <div class="tit">采购合同总额(元)</div>
                    <div class="con colorlan" id="tong_lei_caihe"></div>
                </div>
                <div class="tuo">
                    <div class="tit">供应商累计结算(元)</div>
                    <div class="con colorlan" id="tong_lei_jie"></div>
                </div>
                <div class="tuo">
                    <div class="tit">供应商累计付款 D (元)</div>
                    <div class="con colorlan" id="tong_lei_payment_engin"></div>
                </div>
                <div class="tuo">
                    <div class="tit">项目费用报销 E (元)</div>
                    <div class="con colorlan" id="tong_lei_payment_bao"></div>
                </div>
                <div class="tuo">
                    <div class="tit">累计收票(元)</div>
                    <div class="con colorlan" id="tong_lei_piaoshou"></div>
                </div>
                <div class="tuo">
                    <div class="tit">进项税(元)</div>
                    <div class="con colorlan" id="tong_lei_shou_jin"></div>
                </div>
                <div class="tuo">
                    <div class="tit">收付差 C-D-E (元)</div>
                    <div class="con" id="tong_lei_shoufucha"></div>
                </div>
            </div>
            <div class="tongbox tongbox7">
                <div class="tuo">
                    <div class="tit">累计成本(元)</div>
                    <div class="con" id="tong_lei_cheng_he"></div>
                </div>
                <div class="tuo">
                    <div class="tit">材料费成本(元)</div>
                    <div class="con colorlan" id="tong_cai_fuku"></div>
                </div>
                <div class="tuo">
                    <div class="tit">人工费成本(元)</div>
                    <div class="con colorlan" id="tong_ren_fuku"></div>
                </div>
                <div class="tuo">
                    <div class="tit">机械费成本(元)</div>
                    <div class="con colorlan" id="tong_zu_fuku"></div>
                </div>
                <div class="tuo">
                    <div class="tit">分包费成本(元)</div>
                    <div class="con colorlan" id="tong_fen_fuku"></div>
                </div>
                <div class="tuo">
                    <div class="tit">措施费成本(元)</div>
                    <div class="con colorlan" id="tong_cuo_fuku"></div>
                </div>
                <div class="tuo">
                    <div class="tit">间接费成本(元)</div>
                    <div class="con colorlan" id="tong_jian_payment_bao"></div>
                </div>
            </div>
        </div>
        <div class="tong_business2 layui-hide">
            <div class="tongbox tongbox7">
                <div class="tuo">
                    <div class="tit">项目名称</div>
                    <div class="con" id="tong2_name"></div>
                </div>
                <div class="tuo">
                    <div class="tit">项目状态</div>
                    <div class="con" id="tong2_state_name"></div>
                </div>
                <div class="tuo">
                    <div class="tit">项目属性</div>
                    <div class="con" id="tong2_business_name"></div>
                </div>
                <div class="tuo">
                    <div class="tit">建设单位</div>
                    <div class="con" id="tong2_jian_unit"></div>
                </div>
                <div class="tuo">
                    <div class="tit">工程造价(万元)</div>
                    <div class="con" id="tong2_expectfee"></div>
                </div>
                <div class="tuo">
                    <div class="tit">实际开工日期</div>
                    <div class="con" id="tong2_actualdt"></div>
                </div>
                <div class="tuo">
                    <div class="tit">联营方</div>
                    <div class="con" id="tong2_lian_unit"></div>
                </div>
            </div>
            <div class="tongbox tongbox7">
                <div class="tuo">
                    <div class="tit">施工合同 A (元)</div>
                    <div class="con colorlan" id="tong2_shimoney"></div>
                </div>
                <div class="tuo">
                    <div class="tit">累计审定产值 B (元)</div>
                    <div class="con colorlan" id="tong2_lei_chan"></div>
                </div>
                <div class="tuo">
                    <div class="tit">累计开票(元)</div>
                    <div class="con colorlan" id="tong2_lei_piaokai"></div>
                </div>
                <div class="tuo">
                    <div class="tit">销项税(元)</div>
                    <div class="con colorlan" id="tong2_kai_ratefee"></div>
                </div>
                <div class="tuo">
                    <div class="tit">项目收款 A (元)</div>
                    <div class="con colorlan" id="tong2_lei_incomeengin"></div>
                </div>
                <div class="tuo">
                    <div class="tit">内包扣款 B (元)</div>
                    <div class="con colorlan" id="tong2_lei_payment_neikou"></div>
                </div>
                <div class="tuo">
                    <div class="tit">内包付款 C (元)</div>
                    <div class="con colorlan" id="tong2_lei_payment_neifu"></div>
                </div>
            </div>
            <div class="tongbox tongbox7">
                <div class="tuo">
                    <div class="tit">采购合同总额(元)</div>
                    <div class="con colorlan" id="tong2_lei_caihe"></div>
                </div>
                <div class="tuo">
                    <div class="tit">供应商累计结算(元)</div>
                    <div class="con colorlan" id="tong2_lei_jie"></div>
                </div>
                <div class="tuo">
                    <div class="tit">供应商累计付款 D (元)</div>
                    <div class="con colorlan" id="tong2_lei_payment_engin"></div>
                </div>
                <div class="tuo">
                    <div class="tit">项目费用报销 E (元)</div>
                    <div class="con colorlan" id="tong2_lei_payment_bao"></div>
                </div>
                <div class="tuo">
                    <div class="tit">累计收票(元)</div>
                    <div class="con colorlan" id="tong2_lei_piaoshou"></div>
                </div>
                <div class="tuo">
                    <div class="tit">进项税(元)</div>
                    <div class="con colorlan" id="tong2_lei_shou_jin"></div>
                </div>
                <div class="tuo">
                    <div class="tit">项目余额 A-B-C-D-E (元)</div>
                    <div class="con" id="tong2_lei_balance"></div>
                </div>
            </div>
        </div>
        <div style="height: 50px"></div>
        <div id="daninfo">
            <div class="dan_left hei70 bg1">项目概况</div>
            <div class="dan_right">
                <div class="tou bgrr1">
                    <div>项目性质</div>
                    <div>项目状态</div>
                    <div>所属单位</div>
                    <div>甲方单位</div>
                    <div>项目负责人</div>
                    <div></div>
                </div>
                <div class="nei">
                    <div id="gai_business_name"></div>
                    <div id="gai_state_name"></div>
                    <div id="gai_chanid_name"></div>
                    <div id="gai_jian_unit"></div>
                    <div id="gai_man_xiang_name"></div>
                    <div></div>
                </div>
            </div>
            <div class="fenge"></div>

            <div class="dan_left hei140 bg2">项目收入</div>
            <div class="dan_right">
                <div class="tou bgrr2">
                    <div>施工合同含变更</div>
                    <div>累计审定产值A</div>
                    <div>累计开票B</div>
                    <div>累计回款C</div>
                    <div>产值回款比C/A</div>
                    <div>垫资金额</div>
                </div>
                <div class="nei">
                    <div id="income_shimoney"></div>
                    <div id="income_chan"></div>
                    <div id="income_piaokai"></div>
                    <div id="income_huikuan"></div>
                    <div id="income_chanhui"></div>
                    <div id="income_diankuan"></div>
                </div>
                <div class="tou bgrr2">
                    <div>应收未收（按产值）A-C</div>
                    <div>应收未收（按开票）B-C</div>
                    <div></div>
                    <div></div>
                    <div></div>
                    <div></div>
                </div>
                <div class="nei">
                    <div id="income_ying_chan"></div>
                    <div id="income_ying_kai"></div>
                    <div></div>
                    <div></div>
                    <div></div>
                    <div></div>
                </div>
            </div>
            <div class="fenge"></div>

            <div class="dan_left hei140 bg3">项目支出</div>
            <div class="dan_right">
                <div class="tou bgrr3">
                    <div>采购合同含变更</div>
                    <div>供应商累计结算A</div>
                    <div>供应商累计付款B</div>
                    <div>项目费用报销C</div>
                    <div>累计收票D</div>
                    <div></div>
                </div>
                <div class="nei">
                    <div id="payment_caimoney"></div>
                    <div id="payment_leijie"></div>
                    <div id="payment_payengin"></div>
                    <div id="payment_paybao"></div>
                    <div id="payment_piaoshou"></div>
                    <div></div>
                </div>
                <div class="tou bgrr3">
                    <div>应付未付（按结算）A-B</div>
                    <div>应付未付（按收票）D-B-C</div>
                    <div></div>
                    <div></div>
                    <div></div>
                    <div></div>
                </div>
                <div class="nei">
                    <div id="payment_ying_jie"></div>
                    <div id="payment_ying_shou"></div>
                    <div></div>
                    <div></div>
                    <div></div>
                    <div></div>
                </div>
            </div>
            <div class="fenge"></div>

            <div class="dan_left hei280 bg4">项目成本</div>
            <div class="dan_right">
                <div class="tou bgrr4">
                    <div>预算金额含变更A</div>
                    <div>采购合同含变更B</div>
                    <div>采购合同预算占比B/A</div>
                    <div>供应商累计结算</div>
                    <div>支出付款金额</div>
                    <div></div>
                </div>
                <div class="nei">
                    <div id="cheng_budget"></div>
                    <div id="cheng_caimoney"></div>
                    <div id="cheng_yubi"></div>
                    <div id="cheng_leijie"></div>
                    <div id="cheng_fukuan"></div>
                    <div></div>
                </div>
                <div class="tou bgrr4">
                    <div>材料合同</div>
                    <div>劳务合同</div>
                    <div>租赁合同</div>
                    <div>分包合同</div>
                    <div>其他合同</div>
                    <div></div>
                </div>
                <div class="nei">
                    <div id="cheng_cai_cai"></div>
                    <div id="cheng_cai_lao"></div>
                    <div id="cheng_cai_zu"></div>
                    <div id="cheng_cai_fen"></div>
                    <div id="cheng_cai_qi"></div>
                    <div></div>
                </div>
                <div class="tou bgrr4">
                    <div>材料结算</div>
                    <div>劳务结算</div>
                    <div>租赁结算</div>
                    <div>分包结算</div>
                    <div></div>
                    <div></div>
                </div>
                <div class="nei">
                    <div id="cheng_jie_stuff"></div>
                    <div id="cheng_jie_labour"></div>
                    <div id="cheng_jie_device"></div>
                    <div id="cheng_jie_subbao"></div>
                    <div></div>
                    <div></div>
                </div>
                <div class="tou bgrr4">
                    <div>材料付款</div>
                    <div>劳务付款</div>
                    <div>租赁付款</div>
                    <div>分包付款</div>
                    <div>措施费</div>
                    <div>项目费用报销</div>
                </div>
                <div class="nei">
                    <div id="cheng_fu_stuff"></div>
                    <div id="cheng_fu_labour"></div>
                    <div id="cheng_fu_device"></div>
                    <div id="cheng_fu_subbao"></div>
                    <div id="cheng_fu_cuo"></div>
                    <div id="cheng_fu_bao"></div>
                </div>
            </div>
            <div class="fenge"></div>

            <div class="dan_left hei70 bg5">项目现金流</div>
            <div class="dan_right">
                <div class="tou bgrr5">
                    <div>项目到账总额A</div>
                    <div>项目实际支付B</div>
                    <div>项目现金余额A-B</div>
                    <div></div>
                    <div></div>
                    <div></div>
                </div>
                <div class="nei">
                    <div id="xian_daofee"></div>
                    <div id="xian_zhifee"></div>
                    <div id="xian_yufee"></div>
                    <div></div>
                    <div></div>
                    <div></div>
                </div>
            </div>
            <div class="fenge"></div>

            <div class="dan_left hei70 bg6">项目发票</div>
            <div class="dan_right">
                <div class="tou bgrr6">
                    <div>累计开票</div>
                    <div>销项税额A</div>
                    <div>累计收票</div>
                    <div>进项税额B</div>
                    <div>应缴增值税额A-B</div>
                    <div></div>
                </div>
                <div class="nei">
                    <div id="piao_kai"></div>
                    <div id="piao_xiao"></div>
                    <div id="piao_shou"></div>
                    <div id="piao_jin"></div>
                    <div id="piao_ying"></div>
                    <div></div>
                </div>
            </div>
            <div class="fenge"></div>

            <div class="dan_left hei70 bg7">项目进度</div>
            <div class="dan_right">
                <div class="tou bgrr7">
                    <div>计划总产值A</div>
                    <div>开累完成产值B</div>
                    <div>产值完成比B/A</div>
                    <div>实际开工日期</div>
                    <div>施工天数</div>
                    <div></div>
                </div>
                <div class="nei">
                    <div id="jin_chanfee"></div>
                    <div id="jin_wanchan"></div>
                    <div id="jin_wanbi"></div>
                    <div id="jin_actualdt"></div>
                    <div id="jin_shiday"></div>
                    <div></div>
                </div>
            </div>
            <div class="fenge"></div>

            <div class="dan_left hei70 bg8">质安巡检</div>
            <div class="dan_right">
                <div class="tou bgrr8">
                    <div>巡检次数</div>
                    <div>整改通知数</div>
                    <div>已整改</div>
                    <div>待整改</div>
                    <div>逾期未整改</div>
                    <div></div>
                </div>
                <div class="nei">
                    <div id="xun_xunci"></div>
                    <div id="xun_zhengci"></div>
                    <div id="xun_yizheng"></div>
                    <div id="xun_daizheng"></div>
                    <div id="xun_yuzheng"></div>
                    <div></div>
                </div>
            </div>
            <div class="fenge"></div>

            <div class="dan_left hei140 bg9">项目内包</div>
            <div class="dan_right">
                <div class="tou bgrr9">
                    <div>联营方</div>
                    <div>项目收款A</div>
                    <div>累计内包扣款B</div>
                    <div>累计内包付款C</div>
                    <div>供应商累计付款D</div>
                    <div>项目费用报销E</div>
                </div>
                <div class="nei">
                    <div id="nei_lian_unit"></div>
                    <div id="nei_xiangshou"></div>
                    <div id="nei_kou"></div>
                    <div id="nei_fu"></div>
                    <div id="nei_gongfu"></div>
                    <div id="nei_bao"></div>
                </div>
                <div class="tou bgrr9">
                    <div>项目可用资金A-B-C-D-E</div>
                    <div></div>
                    <div></div>
                    <div></div>
                    <div></div>
                    <div></div>
                </div>
                <div class="nei">
                    <div id="nei_keyong"></div>
                    <div></div>
                    <div></div>
                    <div></div>
                    <div></div>
                    <div></div>
                </div>
            </div>

            <div style="clear: both;"></div>
        </div>
    </div>
</div>
<script>
    var param_id = getQueryVariable('id') || 0;

    layui.use(['form', 'layer', "laytp",'element','dropdown','laypage','table','soulTable'], function() {
        var laypage = layui.laypage, table = layui.table, dropdown = layui.dropdown, form = layui.form, soulTable = layui.soulTable,element = layui.element;

        facade.ajax({url: ask_engin_sea_show, data:{id: param_id}}).done(function(res){
            if (res.code === 2000) {
                var data = res.data.data;


                if(data.business == 1){
                    $(".tong_business1").removeClass('layui-hide');
                    $("#tong_name").text(data.name).click(function () {
                        openPage('../engin/show.php?id='+data.id, '90%', '90%');
                    });
                    $("#tong_state_name").text(data.state_name);
                    $("#tong_business_name").text(data.business_name);
                    $("#tong_jian_unit").text(data.jian_unit);
                    $("#tong_expectfee").text(parseFormatNum(data.expectfee, 6));
                    $("#tong_actualdt").text(data.actualdt);
                    $("#tong_man_xiang_name").text(data.man_xiang_name);



                    $("#tong_shimoney").text(parseFormatNum(data.shimoney)).click(function () {
                        openPage('../contract_shi/tong.php?enginname='+encodeURI(data.name)+'&status=1', '80%', '80%');
                    });
                    $("#tong_lei_chan").text(parseFormatNum(data.lei_chan)).click(function () {
                        openPage('../engin_chan/tong.php?enginname='+encodeURI(data.name)+'&status=1', '80%', '80%');
                    });
                    $("#tong_lei_piaokai").text(parseFormatNum(data.lei_piaokai)).click(function () {
                        openPage('../piao_kai/tong.php?enginname='+encodeURI(data.name)+'&status=1', '80%', '80%');
                    });
                    $("#tong_kai_ratefee").text(parseFormatNum(data.kai_ratefee)).click(function () {
                        openPage('../piao_kai_hui/tong.php?enginname='+encodeURI(data.name)+'&status=1', '80%', '80%');
                    });
                    $("#tong_lei_huikuan").text(parseFormatNum(data.lei_huikuan)).click(function () {
                        openPage('../income_engin/tong.php?enginname='+encodeURI(data.name)+'&status=1&budname='+encodeURI('工程款'), '80%', '80%');
                    });
                    $("#tong_lei_huirate").text(data.lei_huirate);
                    $("#tong_lei_chanrate").text(data.lei_chanrate);


                    $("#tong_lei_caihe").text(parseFormatNum(data.lei_caihe)).click(function () {
                        openPage('../contract_cai/tong.php?enginname='+encodeURI(data.name)+'&status=1', '80%', '80%');
                    });
                    $("#tong_lei_jie").text(parseFormatNum(data.lei_jie)).click(function () {
                        openPage('../tong_pub/gonglei.php?enginid='+data.id, '80%', '80%');
                    });
                    $("#tong_lei_payment_engin").text(parseFormatNum(data.lei_payment_engin)).click(function () {
                        openPage('../payment_engin/tong.php?enginname='+encodeURI(data.name)+'&status=1', '80%', '80%');
                    });
                    $("#tong_lei_payment_bao").text(parseFormatNum(data.lei_payment_bao)).click(function () {
                        openPage('../payment_bao/tong.php?enginname='+encodeURI(data.name)+'&status=1', '80%', '80%');
                    });
                    $("#tong_lei_piaoshou").text(parseFormatNum(data.lei_piaoshou)).click(function () {
                        openPage('../piao_shou/tong.php?enginname='+encodeURI(data.name)+'&status=1', '80%', '80%');
                    });
                    $("#tong_lei_shou_jin").text(parseFormatNum(data.lei_shou_jin)).click(function () {
                        openPage('../piao_shou_hui/tong.php?enginname='+encodeURI(data.name), '80%', '80%');
                    });
                    $("#tong_lei_shoufucha").text(data.lei_shoufucha);


                    $("#tong_lei_cheng_he").text(data.lei_cheng_he);
                    $("#tong_cai_fuku").text(parseFormatNum(data.cai_fuku)).click(function () {
                        openPage('../payment_engin/tong.php?enginname='+encodeURI(data.name)+'&status=1&budid=1', '80%', '80%');
                    });
                    $("#tong_ren_fuku").text(parseFormatNum(data.ren_fuku)).click(function () {
                        openPage('../payment_engin/tong.php?enginname='+encodeURI(data.name)+'&status=1&budid=2', '80%', '80%');
                    });
                    $("#tong_zu_fuku").text(parseFormatNum(data.zu_fuku)).click(function () {
                        openPage('../payment_engin/tong.php?enginname='+encodeURI(data.name)+'&status=1&budid=3', '80%', '80%');
                    });
                    $("#tong_fen_fuku").text(parseFormatNum(data.fen_fuku)).click(function () {
                        openPage('../payment_engin/tong.php?enginname='+encodeURI(data.name)+'&status=1&budid=4', '80%', '80%');
                    });
                    $("#tong_cuo_fuku").text(parseFormatNum(data.cuo_fuku)).click(function () {
                        openPage('../payment_engin/tong.php?enginname='+encodeURI(data.name)+'&status=1&budid=5', '80%', '80%');
                    });
                    $("#tong_jian_payment_bao").text(parseFormatNum(data.jian_payment_bao)).click(function () {
                        openPage('../payment_bao/tong.php?enginname='+encodeURI(data.name)+'&status=1', '80%', '80%');
                    });
                }else{
                    $(".tong_business2").removeClass('layui-hide');
                    $("#tong2_name").text(data.name).click(function () {
                        openPage('../engin/show.php?id='+data.id, '90%', '90%');
                    });
                    $("#tong2_state_name").text(data.state_name);
                    $("#tong2_business_name").text(data.business_name);
                    $("#tong2_jian_unit").text(data.jian_unit);
                    $("#tong2_expectfee").text(parseFormatNum(data.expectfee, 6));
                    $("#tong2_actualdt").text(data.actualdt);
                    $("#tong2_lian_unit").text(data.lian_unit);



                    $("#tong2_shimoney").text(parseFormatNum(data.shimoney)).click(function () {
                        openPage('../contract_shi/tong.php?enginname='+encodeURI(data.name)+'&status=1', '80%', '80%');
                    });
                    $("#tong2_lei_chan").text(parseFormatNum(data.lei_chan)).click(function () {
                        openPage('../engin_chan/tong.php?enginname='+encodeURI(data.name)+'&status=1', '80%', '80%');
                    });
                    $("#tong2_lei_piaokai").text(parseFormatNum(data.lei_piaokai)).click(function () {
                        openPage('../piao_kai/tong.php?enginname='+encodeURI(data.name)+'&status=1', '80%', '80%');
                    });
                    $("#tong2_kai_ratefee").text(parseFormatNum(data.kai_ratefee)).click(function () {
                        openPage('../piao_kai_hui/tong.php?enginname='+encodeURI(data.name)+'&status=1', '80%', '80%');
                    });
                    $("#tong2_lei_incomeengin").text(parseFormatNum(data.lei_huikuan)).click(function () {
                        openPage('../income_engin/tong.php?enginname='+encodeURI(data.name)+'&status=1&budname='+encodeURI('工程款垫资款'), '80%', '80%');
                    });
                    $("#tong2_lei_payment_neikou").text(parseFormatNum(data.lei_payment_neikou)).click(function () {
                        openPage('../payment_neikou/tong.php?enginname='+encodeURI(data.name)+'&status=1', '80%', '80%');
                    });
                    $("#tong2_lei_payment_neifu").text(parseFormatNum(data.lei_payment_neifu)).click(function () {
                        openPage('../payment_neifu/tong.php?enginname='+encodeURI(data.name)+'&status=1', '80%', '80%');
                    });



                    $("#tong2_lei_caihe").text(parseFormatNum(data.lei_caihe)).click(function () {
                        openPage('../contract_cai/tong.php?enginname='+encodeURI(data.name)+'&status=1', '80%', '80%');
                    });
                    $("#tong2_lei_jie").text(parseFormatNum(data.lei_jie)).click(function () {
                        openPage('../tong_pub/gonglei.php?enginid='+data.id, '80%', '80%');
                    });
                    $("#tong2_lei_payment_engin").text(parseFormatNum(data.lei_payment_engin)).click(function () {
                        openPage('../payment_engin/tong.php?enginname='+encodeURI(data.name)+'&status=1', '80%', '80%');
                    });
                    $("#tong2_lei_payment_bao").text(parseFormatNum(data.lei_payment_bao)).click(function () {
                        openPage('../payment_bao/tong.php?enginname='+encodeURI(data.name)+'&status=1', '80%', '80%');
                    });
                    $("#tong2_lei_piaoshou").text(parseFormatNum(data.lei_piaoshou)).click(function () {
                        openPage('../piao_shou/tong.php?enginname='+encodeURI(data.name)+'&status=1', '80%', '80%');
                    });
                    $("#tong2_lei_shou_jin").text(parseFormatNum(data.lei_shou_jin)).click(function () {
                        openPage('../piao_shou_hui/tong.php?enginname='+encodeURI(data.name), '80%', '80%');
                    });
                    $("#tong2_lei_balance").text(data.lei_balance);
                }





                render_from();
            }
        });

        facade.ajax({url: ask_engin_dan_home, data:{enginidstr:'', enginid:param_id}}).done(function(res){
            if (res.code === 2000) {
                var data = res.data;

                if(!data.isinfo){
                    return false;
                }

                $("#gai_business_name").html(data.gai_business_name);
                $("#gai_state_name").html(data.gai_state_name);
                $("#gai_chanid_name").html(data.gai_chanid_name);
                $("#gai_jian_unit").html(data.gai_jian_unit);
                $("#gai_man_xiang_name").html(data.gai_man_xiang_name);


                $("#income_shimoney").html(parseFormatNum(data.income_shimoney));
                $("#income_chan").html(parseFormatNum(data.income_chan));
                $("#income_piaokai").html(parseFormatNum(data.income_piaokai));
                $("#income_huikuan").html(parseFormatNum(data.income_huikuan));
                $("#income_chanhui").html(parseFormatNum(data.income_chanhui));
                $("#income_diankuan").html(parseFormatNum(data.income_diankuan));
                $("#income_ying_chan").html(parseFormatNum(data.income_ying_chan));
                $("#income_ying_kai").html(parseFormatNum(data.income_ying_kai));


                $("#payment_caimoney").html(parseFormatNum(data.payment_caimoney));
                $("#payment_leijie").html(parseFormatNum(data.payment_leijie));
                $("#payment_payengin").html(parseFormatNum(data.payment_payengin));
                $("#payment_paybao").html(parseFormatNum(data.payment_paybao));
                $("#payment_piaoshou").html(parseFormatNum(data.payment_piaoshou));
                $("#payment_ying_jie").html(parseFormatNum(data.payment_ying_jie));
                $("#payment_ying_shou").html(parseFormatNum(data.payment_ying_shou));


                $("#cheng_budget").html(parseFormatNum(data.cheng_budget));
                $("#cheng_caimoney").html(parseFormatNum(data.cheng_caimoney));
                $("#cheng_yubi").html(parseFormatNum(data.cheng_yubi));
                $("#cheng_leijie").html(parseFormatNum(data.cheng_leijie));
                $("#cheng_fukuan").html(parseFormatNum(data.cheng_fukuan));

                $("#cheng_cai_cai").html(parseFormatNum(data.cheng_cai_cai));
                $("#cheng_cai_lao").html(parseFormatNum(data.cheng_cai_lao));
                $("#cheng_cai_zu").html(parseFormatNum(data.cheng_cai_zu));
                $("#cheng_cai_fen").html(parseFormatNum(data.cheng_cai_fen));
                $("#cheng_cai_qi").html(parseFormatNum(data.cheng_cai_qi));

                $("#cheng_jie_stuff").html(parseFormatNum(data.cheng_jie_stuff));
                $("#cheng_jie_labour").html(parseFormatNum(data.cheng_jie_labour));
                $("#cheng_jie_device").html(parseFormatNum(data.cheng_jie_device));
                $("#cheng_jie_subbao").html(parseFormatNum(data.cheng_jie_subbao));

                $("#cheng_fu_stuff").html(parseFormatNum(data.cheng_fu_stuff));
                $("#cheng_fu_labour").html(parseFormatNum(data.cheng_fu_labour));
                $("#cheng_fu_device").html(parseFormatNum(data.cheng_fu_device));
                $("#cheng_fu_subbao").html(parseFormatNum(data.cheng_fu_subbao));
                $("#cheng_fu_cuo").html(parseFormatNum(data.cheng_fu_cuo));
                $("#cheng_fu_bao").html(parseFormatNum(data.cheng_fu_bao));


                $("#xian_daofee").html(parseFormatNum(data.xian_daofee));
                $("#xian_zhifee").html(parseFormatNum(data.xian_zhifee));
                $("#xian_yufee").html(parseFormatNum(data.xian_yufee));


                $("#piao_kai").html(parseFormatNum(data.piao_kai));
                $("#piao_xiao").html(parseFormatNum(data.piao_xiao));
                $("#piao_shou").html(parseFormatNum(data.piao_shou));
                $("#piao_jin").html(parseFormatNum(data.piao_jin));
                $("#piao_ying").html(parseFormatNum(data.piao_ying));


                $("#jin_chanfee").html(parseFormatNum(data.jin_chanfee));
                $("#jin_wanchan").html(parseFormatNum(data.jin_wanchan));
                $("#jin_wanbi").html(parseFormatNum(data.jin_wanbi));
                $("#jin_actualdt").html(data.jin_actualdt);
                $("#jin_shiday").html(data.jin_shiday);


                $("#xun_xunci").html(data.xun_xunci);
                $("#xun_zhengci").html(data.xun_zhengci);
                $("#xun_yizheng").html(data.xun_yizheng);
                $("#xun_daizheng").html(data.xun_daizheng);
                $("#xun_yuzheng").html(data.xun_yuzheng);


                $("#nei_lian_unit").html(data.nei_lian_unit);
                $("#nei_xiangshou").html(parseFormatNum(data.nei_xiangshou));
                $("#nei_kou").html(parseFormatNum(data.nei_kou));
                $("#nei_fu").html(parseFormatNum(data.nei_fu));
                $("#nei_gongfu").html(parseFormatNum(data.nei_gongfu));
                $("#nei_bao").html(parseFormatNum(data.nei_bao));
                $("#nei_keyong").html(parseFormatNum(data.nei_keyong));


                xmselect_dan('enginid', res.data.enginlist, res.data.is_enginid, function (res) {
                    get_engin_dan_home(res.change[0].id)
                })

                render_from();
            }
        });
    });


    function get_flowinfo() {
        openPage('../bill_monitor/sea.php?enginid='+param_id, '90%', '90%');
    }


</script>
</body>
</html>




